<!DOCTYPE />
<!-- saved from url=(0063)file:///D:/Users/lap-panic3/Dropbox/HERO/sidekick/sidekick.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<script src="js/jquery-1.7.2.js" type="text/javascript"></script>
<script src="js/jquery.shortkeys.js" type="text/javascript"></script>
<script src="js/sidekick-print.js" type="text/javascript"></script>
<script src="js/sidekick-dice.js" type="text/javascript"></script>
<script src="js/sidekick-participants.js" type="text/javascript"></script>
<script type="text/javascript">
var maxTurn = 10;

function combatLogDimAll() {
	var logCount = combatLogCount();
	var ii = 0;
	while ( ii < logCount ) {
		combatLogDim(ii);
		ii++;
		}
	}

function combatLogDim( intLog_entry ) {
	var entry_id = "log_entry-" + intLog_entry;
	var log_entry = document.getElementById( entry_id );
	log_entry.className = 'read' ;
	
	var dim_box_id = "dim_box-" + intLog_entry;
	var dim_box = document.getElementById( dim_box_id );
	dim_box.className = 'hidden';

	var attack_roll_button_id = "attack_roll_button-" + intLog_entry;
	
	if( document.getElementById( attack_roll_button_id ) ) {	
		var attack_roll_button = document.getElementById( attack_roll_button_id );
		attack_roll_button.className = 'hidden';
		}

	var hit_location_button_id = "hit_location_button-" + intLog_entry;

	if ( document.getElementById( hit_location_button_id )== true ) {	
		var hit_location_button = document.getElementById( hit_location_button_id );
		hit_location_button.className = 'hidden';
		}
	
	return true;
	}
/*
function revealAttackRoll( intLog_entry ) {
	var target_id = "attack_roll-" + intLog_entry;
	document.getElementById( target_id ).className = "attack_roll";
	}

function revealHitLocation( intLog_entry ) {
	var target_id = "hit_location-" + intLog_entry;
	document.getElementById( target_id ).className = "hit_location";
	}

function revealAllHitLocations () {
	
	}
*/

function combatLogCount() {
	var log = document.getElementById("combat_log_list").getElementsByTagName( "li" );
	return log.length;
	}
	
function combatLogEntry( strEntry , player ) {
	var combat_log = document.getElementById("combat_log_list");
	var combat_log_count = combatLogCount();
	strResult = "<input id=\"dim_box-" + combat_log_count + "\" type=\"checkbox\" onClick='combatLogDim(" + combat_log_count + ")' class=\"dim_box\" /><li ";
	if ( typeof player !== "undefined" ) {
		strResult = strResult + " onClick=\"activatePlayer(" + player + ", this )\" ";
		}
	strResult = strResult + " id=\"log_entry-" + combat_log_count + "\" class='nactive'>" + strEntry + "</li>" + combat_log.innerHTML;
	combat_log.innerHTML = strResult;
	}

function combatLogAppend( entry_id , strHTML ) {
	var log_entry = document.getElementById( entry_id );
	if ( strHTML.length > 0 ) {
		log_entry.innerHTML += "<div class=\"append\">" + strHTML + "</div>";
		}
	}

function combatLogClearActive() {
	var combat_log = document.getElementById("combat_log_list");
	var combat_log_count = combatLogCount();
	
	for ( ii=0; ii<combat_log_count ; ii++ ) {
		var entry_id = "log_entry-" + ii;
		var log_entry = document.getElementById( entry_id );
		if (log_entry.className.search("yactive") !== -1 ) {
			log_entry.className = log_entry.className.replace( "yactive" , "nactive");
			}
		}
	return true;
	}

function combatLogFindActive() {
	var combat_log = document.getElementById("combat_log_list");
	var combat_log_count = combatLogCount();
	for ( ii=0; ii<combat_log_count ; ii++ ) {
		var entry_id = "log_entry-" + ii;
		var log_entry = document.getElementById( entry_id );
		if (log_entry.className.search("yactive") !== -1 ) {
			return entry_id;
			}
		}
	return false;
	}

function participant( argName , argSPD , argDEX ) {
	this.name = argName;
	this.SPD = parseInt( argSPD );
	this.DEX = parseInt( argDEX );
	
	this.alertStats = function() {
		var summary = "Participant \"" + this.name + "\" has " + this.SPD + " SPD and " + this.DEX + " DEX.";
		alert(summary);
		}

	//this.alertStats();
	
	this.phases = determinePhases( this.SPD );
	
	//alert( this.phases );
	}

function getSegment() {
	var currentSegment = parseInt( document.getElementById('timekeeper_segment').value );
	return currentSegment;
	}

function setSegment( argSegment ) {
	document.getElementById('timekeeper_segment').value = argSegment;
	return true;
	}
	
function getDexterity() {
	var currentDexterity = parseInt( document.getElementById('timekeeper_dexterity').value );
	return currentDexterity;
	}

function setDexterity( argDexterity ) {
	document.getElementById('timekeeper_dexterity').value = argDexterity;
	return true;
	}

function findMaxDEX( participants ) {
	var maximum = 1;
	for (ii=0;ii<participants.length;ii++) {
		if ( participants[ii].DEX > maximum ) {
			maximum = participants[ii].DEX ;
			}
		}
	return maximum;
	}


function sidekick() {
	var arr_participants = new getParticipants();

	this.segment = getSegment();
	this.dexterity = getDexterity();
	this.maxDEX = findMaxDEX( arr_participants );
	//alert( this.maxDEX );

	if ( !this.dexterity ) {
		setDexterity( this.maxDEX );
		this.dexterity = this.maxDEX;
		}

	var acting_now = new Array();
	
	for (ii=0;ii<arr_participants.length;ii++) {
		//alert("There are " + arr_participants.length + " participants");
		if ( arr_participants[ii].DEX == this.dexterity && arr_participants[ii].phases.indexOf( this.segment ) > -1 ) {
			//alert( arr_participants[ii].name + " has Dex of " + this.dexterity + " and a Phase on " + this.segment );
			acting_now.push( ii );
			}
		}

	
	if ( acting_now.length === 1 ) {
		//only one person is active here
		//player zero goes
		phaseActive( acting_now[0] );
		advanceTime();
		} else if ( acting_now.length > 1 ) {
		//gotta deal with multiple goers
		//had a big dex roll off bullshit for a while but it wasn't working
		//so instead we just randomize who goes next
		//using a shuffle function I found online that seems to be pretty well random
		shuffle( acting_now );
		for ( jj=0 ; jj<acting_now.length; jj++ ) {
			phaseActive( acting_now[jj] );
			}
		advanceTime();

		} else if ( acting_now.length === 0 ) {
		advanceTime();
		sidekick();
		}
	
	function advanceTime() {
		//moves on to the next DEX and/or next Segment
		//loops back around after segment 12
		this.dexterity = this.dexterity - 1;
		if ( this.dexterity == 0 ) {
			if ( this.segment == 12 ) {
				//alert("Post-Segment 12 Recovery!");
				combatLogEntry("Post-Segment 12 Recovery!", "unread bold");
				setSegment( 1 );
				} else {
				setSegment( this.segment + 1 );
				}
			setDexterity( this.maxDEX );
			} else {
			setDexterity( this.dexterity );
			}
		}
	
	function phaseActive( player ) {
		//outputs a combat log item stating the segment, dex, and player name
		//also makes an unadjusted attack roll and shows the result; player can add modifiers for instant DCV calculation
		var arr_commentary = new Array();
		arr_commentary.push( "%NAME% steps up to the plate!" );
		arr_commentary.push( "%NAME% is ready for action!" );
		arr_commentary.push( "%NAME% looks for the winning move!" );
		arr_commentary.push( "%NAME% better think quick!" );
		arr_commentary.push( "All eyes are on %NAME%!" );
		arr_commentary.push( "The crowd goes wild for %NAME%!" );
		arr_commentary.push( "You mess with the bull, you get %NAME%!" );
		arr_commentary.push( "There's no mistaking %NAME%!" );
		arr_commentary.push( "%NAME% is raring to go!" );
		arr_commentary.push( "%NAME% is bringing the pain!" );
		arr_commentary.push( "%NAME% is looking for Steve!" );
		arr_commentary.push( "%NAME% knows what they call a Quarter Pounder with Cheese in France." );
		arr_commentary.push( "%NAME% just Popeye'd a can of spinach!" );
		
		var random = Math.floor( Math.random() * arr_commentary.length );
		var commentary = arr_commentary[random];
		commentary = commentary.replace("%NAME%","<span class=\"phase_participant\">" + arr_participants[player].name + "</span>");

		var logEntry = "<div class=\"phase\">" + commentary +  "<span class=\"phase_time\">(segment " + this.segment + ", DEX " + this.dexterity + ")</span>" + "</div>";
		
		combatLogEntry( logEntry , player );
		
		var participant_phase_active = combatLogFindActive();
		//alert( participant_phase_active );
		if( participant_phase_active == false ) {
			//no phase active
			//alert( "no phase active!");
			var log_count = combatLogCount();
			
			target_log_entry_id = "log_entry-" + (log_count - 1);
			target_log_entry = document.getElementById( target_log_entry_id );
			activatePlayer( player , target_log_entry );
			}
		}

	}

//here there be things taken from the interwebs
shuffle = function(o){ //v1.0
	for(var j, x, i = o.length; i; j = parseInt(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x);
	return o;
};

//though this one is going to be modified
function addRow( tableID , content ) {
 
	var table = document.getElementById(tableID);

	var rowCount = table.rows.length;
	var row = table.insertRow(rowCount);
 
	var cell1 = row.insertCell(0);
	var element1 = document.createElement("input");
	element1.type = "checkbox";
	cell1.appendChild(element1);
 
	var cell2 = row.insertCell(1);
	cell2.innerHTML = rowCount + 1;
 
	var cell3 = row.insertCell(2);
	var element2 = document.createElement("input");
	element2.type = "text";
	cell3.appendChild(element2);
 
 
        }

function increment( elementID , direction ) {
	target = document.getElementById( elementID );
	
	if ( direction == "up" ) {
		target.value++;
		} else {
		target.value--;
		}
	}

function getCheckedValue( radioObj ) {
	if(!radioObj)
		return "";
	var radioLength = radioObj.length;
	if(radioLength == undefined)
		if(radioObj.checked)
			return radioObj.value;
		else
			return "";
	for(var i = 0; i < radioLength; i++) {
		if(radioObj[i].checked) {
			return radioObj[i].value;
		}
	}
	return "";
}

	
	
$(document).shortkeys({
  'A':     		 function () { printAttackRoll( attackRoll() ); },
  'P': 			 function () { sidekick(); },
  'D':			 function () { logDieRoll(); },
  'Add':		 function () { increment( "countDSix" , "up" ); },
  'Subtract':	 function () { increment( "countDSix" , "down" ); },
  'Z':	 		 function () { combatLogDimAll(); },
  'W':			 function () { printHitLocation(attackRoll().location); },
  'X':			 function () { logStunXRoll(); }
});
		
</script>
<link rel="stylesheet" type="text/css" href="./css/sidekick.css">
</head>
<body>
<div id="top">
	<div id="controls">
		<h2 style="padding:2px 8px;margin-bottom:0px;">Controls</h2>
		<div id="timekeeper">
			<ol>
				<li><label>Segment:</label><input type="text" id="timekeeper_segment" value="12" class="integer small_box" /></li>
				<li><label>Dex:</label><input type="text" id="timekeeper_dexterity" class="integer small_box" /></li>
				<li><input type="button" value="Next Phase" onclick="sidekick();"></li>
			</ol>
		</div>
		
		<div id="attack_roller">
			<input type="button" value="Attack Roll" onClick="printAttackRoll(attackRoll());" />
		</div>
		<div id="hit_location_roller">
			<input type="button" value="Hit Location" onClick="printHitLocation(attackRoll().location);" />
		</div>
		<div id="die_roller">
			<ol style="list-style-type:none;margin:0;padding:0;"><li><input type="button" value="Roll" onclick="logDieRoll();" /> <img src="img/arrow_mini_up.png" onClick="increment('countDSix','up')" /> <img src="img/arrow_mini_down.png" onClick="increment('countDSix','down')" /> <input type="text" name="dice_count" id="countDSix" value="3" class="integer small_box" />d6</li>
			<li><form style="margin:0;" name="die_roll_adder_form"><input type="radio" name="die_roll_adder" value="pip" id="die_roll_adder-pip" /><label for="die_roll_adder-pip">+1</label> <input type="radio" name="die_roll_adder" value="half" id="die_roll_adder-half" /><label for="die_roll_adder-half">+1/2d6</label>  <input type="radio" name="die_roll_adder" value="minus_one" id="die_roll_adder-minus_one" /><label for="die_roll_adder-minus_one">+d6-1</label> <input type="radio" name="die_roll_adder" value="nil" id="die_roll_adder-nil"  checked /><label for="die_roll_adder-nil">+nil</label></form></li></ol>
		</div>
		<div id="armor_activation">
			<input type="button" value="Armor Activation" onclick="logArmorActivation();" />
		</div>
		<div id="stun_multiplier">
			<input type="button" value="STUN Multiplier" onclick="logStunXRoll();" />
		</div>
		<div id="dim_all">
			<input type="button" value="Dim All" onclick="combatLogDimAll();" />
		</div>
		<div id="shortcuts">
		<h2 style="margin-bottom:0px;">Shortcuts</h2>
			<ol>
			<li>+: More dice</li>
			<li>-: Fewer dice</li>
			<li>D: Roll dice</li>
			<li>P: Next phase</li>
			<li>A: Attack roll</li>
			<li>W: Hit location</li>
			<li>X: STUN Multiplier</li>
			<li>Z: Dim all</li>
			</ol>
		</div>
		
	</div>
	<div id="combat_log">
		<h1>Combat Log</h1>
		<ol id="combat_log_list">
		</ol>
	</div>
</div>
<div id="bottom">
<div id="participants_summary">
	<form id="participants_form">
		<table id="participants_table">
			<tbody>
				<tr>
					<!--<th style="text-align:left">Phase</th>-->
					<th style="text-align:left">Name</th>
					<th>SPD</th>
					<th>DEX</th>
					<th>CON</th>
					<th>PD</th>
					<th>ED</th>
					<th>REC</th>
					<th colspan=2 class="double_wide">END</th>
					<th colspan=2 class="double_wide">STUN</th>
					<th colspan=2 class="double_wide">BODY</th>
					<th></th>
				</tr>
				<tr id="participant_row-0" class="nactive">
					<!--<td><input type="radio" name="participant_phase" class="participant_phase" /></td>-->
					<td><input type="text" name="participant_name" class="participant_name" value="Jim (John)" /></td>
					<td><input type="text" name="participant_spd" class="stat integer" value="4" /></td>
					<td><input type="text" name="participant_dex" class="stat integer" value="20" /></td>
					<td><input type="text" name="participant_con" class="stat integer" value="11" /></td>
					<td><input type="text" name="participant_pd" class="stat integer" value="4" /></td>
					<td><input type="text" name="participant_ed" class="stat integer" value="2" /></td>
					<td><input type="text" name="participant_rec" class="stat integer" value="3" /></td>
					<td><input type="text" name="participant_end" class="stat integer" value="22" /></td>
					<td>/<input type="text" name="participant_end_max" class="stat integer" value="22" /></td>
					<td><input type="text" name="participant_stun" class="stat integer" value="25" /></td>
					<td>/<input type="text" name="participant_stun_max" class="stat integer" value="25" /></td>
					<td><input type="text" name="participant_body" class="stat integer" value="11" /></td>
					<td>/<input type="text" name="participant_body_max" class="stat integer" value="11" /></td>
					<td><input type="file" name="participant_xml" value="xml" /></td>
				</tr>
				<tr id="participant_row-1" class="nactive">
					<!--<td><input type="radio" name="participant_phase" class="participant_phase" /></td>-->
					<td><input type="text" name="participant_name" class="participant_name" value="Chris" /></td>
					<td><input type="text" name="participant_spd" class="stat integer" value="3" /></td>
					<td><input type="text" name="participant_dex" class="stat integer" value="11" /></td>
					<td><input type="text" name="participant_con" class="stat integer" value="10" /></td>
					<td><input type="text" name="participant_pd" class="stat integer" value="3" /></td>
					<td><input type="text" name="participant_ed" class="stat integer" value="2" /></td>
					<td><input type="text" name="participant_rec" class="stat integer" value="5" /></td>
					<td><input type="text" name="participant_end" class="stat integer" value="20" /></td>
					<td>/<input type="text" name="participant_end_max" class="stat integer" value="20" /></td>
					<td><input type="text" name="participant_stun" class="stat integer" value="21" /></td>
					<td>/<input type="text" name="participant_stun_max" class="stat integer" value="21" /></td>
					<td><input type="text" name="participant_body" class="stat integer" value="9" /></td>
					<td>/<input type="text" name="participant_body_max" class="stat integer" value="9" /></td>
					<td><input type="file" name="participant_xml" value="xml" /></td>
				</tr>
				<tr id="participant_row-2" class="nactive">
					<!--<td><input type="radio" name="participant_phase" class="participant_phase" /></td>-->
					<td><input type="text" name="participant_name" class="participant_name" value="James" /></td>
					<td><input type="text" name="participant_spd" class="stat integer" value="3" /></td>
					<td><input type="text" name="participant_dex" class="stat integer" value="11" /></td>
					<td><input type="text" name="participant_con" class="stat integer" value="11" /></td>
					<td><input type="text" name="participant_pd" class="stat integer" value="4" /></td>
					<td><input type="text" name="participant_ed" class="stat integer" value="2" /></td>
					<td><input type="text" name="participant_rec" class="stat integer" value="2" /></td>
					<td><input type="text" name="participant_end" class="stat integer" value="22" /></td>
					<td>/<input type="text" name="participant_end_max" class="stat integer" value="22" /></td>
					<td><input type="text" name="participant_stun" class="stat integer" value="23" /></td>
					<td>/<input type="text" name="participant_stun_max" class="stat integer" value="23" /></td>
					<td><input type="text" name="participant_body" class="stat integer" value="11" /></td>
					<td>/<input type="text" name="participant_body_max" class="stat integer" value="11" /></td>
					<td><input type="file" name="participant_xml" value="xml" /></td>
				</tr>
				<tr id="participant_row-3" class="nactive">
					<!--<td><input type="radio" name="participant_phase" class="participant_phase" /></td>-->
					<td><input type="text" name="participant_name" class="participant_name" value="Simmons" /></td>
					<td><input type="text" name="participant_spd" class="stat integer" value="4" /></td>
					<td><input type="text" name="participant_dex" class="stat integer" value="15" /></td>
					<td><input type="text" name="participant_con" class="stat integer" value="10" /></td>
					<td><input type="text" name="participant_pd" class="stat integer" value="4" /></td>
					<td><input type="text" name="participant_ed" class="stat integer" value="2" /></td>
					<td><input type="text" name="participant_rec" class="stat integer" value="3" /></td>
					<td><input type="text" name="participant_end" class="stat integer" value="20" /></td>
					<td>/<input type="text" name="participant_end_max" class="stat integer" value="20" /></td>
					<td><input type="text" name="participant_stun" class="stat integer" value="22" /></td>
					<td>/<input type="text" name="participant_stun_max" class="stat integer" value="22" /></td>
					<td><input type="text" name="participant_body" class="stat integer" value="10" /></td>
					<td>/<input type="text" name="participant_body_max" class="stat integer" value="10" /></td>
					<td><input type="file" name="participant_xml" value="xml" /></td>
				</tr>
				<tr id="participant_row-4" class="nactive">
					<!--<td><input type="radio" name="participant_phase" class="participant_phase" /></td>-->
					<td><input type="text" name="participant_name" class="participant_name" value="Omega" /></td>
					<td><input type="text" name="participant_spd" class="stat integer" value="3" /></td>
					<td><input type="text" name="participant_dex" class="stat integer" value="14" /></td>
					<td><input type="text" name="participant_con" class="stat integer" value="13" /></td>
					<td><input type="text" name="participant_pd" class="stat integer" value="4" /></td>
					<td><input type="text" name="participant_ed" class="stat integer" value="4" /></td>
					<td><input type="text" name="participant_rec" class="stat integer" value="3" /></td>
					<td><input type="text" name="participant_end" class="stat integer" value="20" /></td>
					<td>/<input type="text" name="participant_end_max" class="stat integer" value="20" /></td>
					<td><input type="text" name="participant_stun" class="stat integer" value="18" /></td>
					<td>/<input type="text" name="participant_stun_max" class="stat integer" value="18" /></td>
					<td><input type="text" name="participant_body" class="stat integer" value="8" /></td>
					<td>/<input type="text" name="participant_body_max" class="stat integer" value="8" /></td>
					<td><input type="file" name="participant_xml" value="xml" /></td>
				</tr>
				<tr id="participant_row-5" class="nactive">
					<!--<td><input type="radio" name="participant_phase" class="participant_phase" /></td>-->
					<td><input type="text" name="participant_name" class="participant_name" value="" /></td>
					<td><input type="text" name="participant_spd" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_dex" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_con" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_pd" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_ed" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_rec" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_end" class="stat integer" value="" /></td>
					<td>/<input type="text" name="participant_end_max" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_stun" class="stat integer" value="" /></td>
					<td>/<input type="text" name="participant_stun_max" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_body" class="stat integer" value="" /></td>
					<td>/<input type="text" name="participant_body_max" class="stat integer" value="" /></td>
					<td><input type="file" name="participant_xml" value="xml" /></td>
				</tr>
				<tr id="participant_row-6" class="nactive">
					<!--<td><input type="radio" name="participant_phase" class="participant_phase" /></td>-->
					<td><input type="text" name="participant_name" class="participant_name" value="" /></td>
					<td><input type="text" name="participant_spd" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_dex" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_con" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_pd" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_ed" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_rec" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_end" class="stat integer" value="" /></td>
					<td>/<input type="text" name="participant_end_max" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_stun" class="stat integer" value="" /></td>
					<td>/<input type="text" name="participant_stun_max" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_body" class="stat integer" value="" /></td>
					<td>/<input type="text" name="participant_body_max" class="stat integer" value="" /></td>
					<td><input type="file" name="participant_xml" value="xml" /></td>
				</tr>
				<tr id="participant_row-7" class="nactive">
					<!--<td><input type="radio" name="participant_phase" class="participant_phase" /></td>-->
					<td><input type="text" name="participant_name" class="participant_name" value="" /></td>
					<td><input type="text" name="participant_spd" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_dex" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_con" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_pd" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_ed" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_rec" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_end" class="stat integer" value="" /></td>
					<td>/<input type="text" name="participant_end_max" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_stun" class="stat integer" value="" /></td>
					<td>/<input type="text" name="participant_stun_max" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_body" class="stat integer" value="" /></td>
					<td>/<input type="text" name="participant_body_max" class="stat integer" value="" /></td>
					<td><input type="file" name="participant_xml" value="xml" /></td>
				</tr>
				<tr id="participant_row-8" class="nactive">
					<!--<td><input type="radio" name="participant_phase" class="participant_phase" /></td>-->
					<td><input type="text" name="participant_name" class="participant_name" value="" /></td>
					<td><input type="text" name="participant_spd" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_dex" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_con" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_pd" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_ed" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_rec" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_end" class="stat integer" value="" /></td>
					<td>/<input type="text" name="participant_end_max" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_stun" class="stat integer" value="" /></td>
					<td>/<input type="text" name="participant_stun_max" class="stat integer" value="" /></td>
					<td><input type="text" name="participant_body" class="stat integer" value="" /></td>
					<td>/<input type="text" name="participant_body_max" class="stat integer" value="" /></td>
					<td><input type="file" name="participant_xml" value="xml" /></td>
				</tr>
			</tbody>
		</table>
	</form>
</div>
</div>
</body></html>